package com.ncepu.clubmanagement.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class AffairContent {
    private String reason;
    private Integer bigAffairType;
    private Integer affairType;
    private String value1;
    private Integer value2;
    private Integer value3;
    private String value4;
    private String value5;
    private Integer value6;

    public static AffairContent createByAffair(Affair affair){
        return new AffairContent(affair.getReason(),affair.getBigAffairType(),affair.getAffairType(),
                affair.getValue1(),affair.getValue2(),affair.getValue3(),affair.getValue4(),affair.getValue5(),affair.getValue6());
    }
}
